/**
 *  用户接口
 */
import { getMasterCommonPkg } from '@/utils/masterData';
const {
  request,
  consts: {
    environment: { apiUrl, userApiPrefix },
  },
} = getMasterCommonPkg();

// 登录
export async function login(data) {
  return request(
    `${userApiPrefix}/v1/account/token/user_credential`,
    {
      method: 'GET',
      params: data.params,
    },
    apiUrl,
  );
}
